package com.xb.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xb.common.result.Result;
import com.xb.model.system.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xb.model.vo.LoginVo;
import com.xb.model.vo.SysUserQueryVo;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author xb
 * @since 2023-08-23
 */
public interface SysUserService extends IService<SysUser> {


    //分页查询
    IPage<SysUser> selectPage(Page<SysUser> pageParam, SysUserQueryVo userQueryVo);

    //更新用户
    void updateStatus(Long id, Integer status);


    //登录核实
    Result<Map<String, Object>> loginCheck(LoginVo loginVo);

    // 根据用户名获取用户登录信息
    Map<String, Object> getUserInfo(String username);

    //根据用户名获取用户
    SysUser getByUsername(String username);


}
